<?php
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
use common\components\helpers\Fun;
use common\components\extenders\MenuManage;

use doumiaoduo\layer\LayerAsset;
LayerAsset::register($this);

LayerConfirmWidget::widget();
LayerIframeWidget::widget();
?>
<?php
$form = \yii\widgets\ActiveForm::begin(['enableAjaxValidation' => true,'enableClientValidation' => true,'options'=>['class'=>'form-validate']]);
?>
<div class="yx-cnt-box yx-praise-content yx-radius2">
    <div class="yx-praise-box zx-min-height">
        <div class="yx-member-info" style="border-bottom: none;">
            <h3 class="yx-pb15">成长日志:</h3>
            <table class="yx-member-box yx-member-box1">
                <tr>
                    <td bgcolor="#f8f8f8"><?= $model->attributeLabels()['lesson_content']; ?></td>
                    <td style="vertical-align:middle; text-align:left;"><?=$model->lesson_content ?></td>
                </tr>
                <tr>
                    <td bgcolor="#f8f8f8"><?= $model->attributeLabels()['lesson_fouce']; ?></td>
                    <td style="vertical-align:middle; text-align:left;"><?=$model->lesson_fouce ?></td>
                </tr>
                <tr>
                    <td bgcolor="#f8f8f8"><?= $model->attributeLabels()['refouce_notice']; ?></td>
                    <td style="vertical-align:middle; text-align:left;"><?=$model->refouce_notice ?></td>
                </tr>


                <?php if(isset($comment_data['teache_teacher']) && !empty($comment_data['teache_teacher'])) {?>
                    <tr>
                        <td bgcolor="#f8f8f8">对老师的评价</td>
                        <td style="vertical-align:middle; text-align:left;">
                        <?php foreach ($comment_data['teache_teacher'] as $k=>$v) { ?>
                            <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
                                <div>
                                    <?=$v['title'] ?>
                                    <?=$v['description'] ?>
                                </div>
                                <?php foreach ($v['score'] as $sk=>$sv) { ?>
                                    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
                                        <?=$sv['title'] ?>
                                        <?php for($i=1;$i<=$sv['value'];$i++){ ?>
                                            <img src="/images/A-course-star.png" />
                                        <?php } ?>
                                    </div>
                                <?php } ?>
                            </div>
                        <?php } ?>
                        </td>
                    </tr>
                <?php } ?>
                <?php if(isset($comment_data['class_teacher']) && !empty($comment_data['class_teacher'])) {?>
                    <tr>
                        <td bgcolor="#f8f8f8">对班主任的评价</td>
                        <td style="vertical-align:middle; text-align:left;">
                        <?php foreach ($comment_data['class_teacher'] as $k=>$v) { ?>
                            <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
                                <div>
                                    <?=$v['title'] ?>
                                    <?=$v['description'] ?>
                                </div>
                                <?php foreach ($v['score'] as $sk=>$sv) { ?>
                                    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
                                        <?=$sv['title'] ?>
                                        <?php for($i=1;$i<=$sv['value'];$i++){ ?>
                                            <img src="/images/A-course-star.png" />
                                        <?php } ?>
                                    </div>
                                <?php } ?>
                            </div>
                        <?php } ?>
                        </td>
                    </tr>
                <?php } ?>
                <?php if(isset($comment_data['manager']) && !empty($comment_data['manager'])) {?>
                    <tr>
                        <td bgcolor="#f8f8f8">对管理人员的评价</td>
                        <td style="vertical-align:middle; text-align:left;">
                        <?php foreach ($comment_data['manager'] as $k=>$v) { ?>
                            <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
                                <div>
                                    <?=$v['title'] ?>
                                    <?=$v['description'] ?>
                                </div>
                                <?php foreach ($v['score'] as $sk=>$sv) { ?>
                                    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
                                        <?=$sv['title'] ?>
                                        <?php for($i=1;$i<=$sv['value'];$i++){ ?>
                                            <img src="/images/A-course-star.png" />
                                        <?php } ?>
                                    </div>
                                <?php } ?>
                            </div>
                        <?php } ?>
                        </td>
                    </tr>
                <?php } ?>
                <tr>
                    <td bgcolor="#f8f8f8"><?= $model->attributeLabels()['refouce_answer']; ?></td>
                    <td style="vertical-align:middle; text-align:left;"><?= $form->field($model, 'refouce_answer', ['template' => '{input}{error}{hint}'])->widget(\doumiaoduo\ueditor\Ueditor::className(),['clientOptions'=>[
                            'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action']),
                            'toolbars'=>[['fullscreen', 'source', '|', 'undo', 'redo', '|','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript','rowspacingtop', 'rowspacingbottom', 'lineheight', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify','simpleupload','removeformat']],
                            'initialFrameWidth'=>'100%'
                        ],]) ?></td>
                </tr>

            </table>
            <div class="yx-submit-box">
                <?= \yii\helpers\Html::submitButton('提交', ['class' => "button yx-submit yx-radius2", 'id' => 'dosubmit']) ?>
            </div>
        </div>
    </div>
</div>
<?php \yii\widgets\ActiveForm::end(); ?>





